package com.huanletao.sync.lock01;

public class AddThread implements Runnable {

    private Task task;

    public AddThread(Task task) {
        this.task = task;
    }

    @Override
    public void run() {
        while (true){
            task.add();
        }
    }

}
